home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Freeware
/
First Page 2006 3.00
/
fp2006-final-3.00-setup.exe
/
{app}
/
Iscripts
/
Equivalents
/
euro-converter.izs
< prev
next >
Wrap
Text File
|
2005-09-27
|
7KB
|
299 lines
<!NOWIZARD>
<!TITLE>Euro Converter
<!/TITLE>
<!DESCRIPTION>This is a good tool if you travel alot and need to convert you money to euros!<!/DESCRIPTION>
<!CATEGORY>Equivalents<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL EURO CONVERTER:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Mike McGrath (mike_mcgrath@lineone.net) -->
<!-- Web Site: http://website.lineone.net/~mike_mcgrath -->
<!-- Begin
var rate, index;
function locate(f,member,curr,r) {
f.country.value=member;
f.currency.value=curr;
f.euro1.value=1;
rate=r;
toLocal(f);
}
function toLocal(f) {
if (f.euro1.value != "") {
f.local1.value = eval(f.euro1.value * rate);
if (f.euro1.value != "1") {
f.local1.value=eval(Math.round(f.local1.value * 100)) / 100;
f.local1.value=format(f.local1.value);
}
}
}
function toEuro(f) {
if (f.local2.value != "") {
f.euro2.value = eval(f.local2.value / rate);
if (f.local2.value != "1") {
f.euro2.value=eval(Math.round(f.euro2.value * 100)) / 100;
f.euro2.value=format(f.euro2.value);
}
}
}
function format(str) {
index = str.indexOf(".");
if (index < 0) str = str + ".00";
else {
str = str.substring(0, index + 3);
if (str.length < (index + 3)) str += "0";
}
return str;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<center>
<form name="euroform">
<table border=1 cellpadding=3 cellspacing=0>
<td align=center colspan=6>Euro Converter</td>
<tr>
<td align=center>
<input type=button value="ATS" onClick="locate(this.form,'Austria','Schilling',13.7603)">
</td>
<td align=center>
<input type=button value="BEF" onClick="locate(this.form,'Belgium','Franc',40.3399)">
</td>
<td align=center>
<input type=button value="DEM" onClick="locate(this.form,'Germany','Mark',1.95583)">
</td>
<td align=center>
<input type=button value="ESP" onClick="locate(this.form,'Spain','Peseta',166.386)">
</td>
<td align=center>
<input type=button value="FRF" onClick="locate(this.form,'France','Franc',6.55957)">
</td>
<td align=center>
<input type=button value="IEP " onClick="locate(this.form,'Ireland','Pound',0.787564)">
</td>
</tr>
<tr>
<td align=center>
<input type=button value=" ITL " onClick="locate(this.form,'Italy','Lira',1936.27)">
</td>
<td align=center>
<input type=button value="NLG" onClick="locate(this.form,'Holland','Guilder',2.20371)">
</td>
<td align=center>
<input type=button value="LUF" onClick="locate(this.form,'Luxembourg','Franc',40.3399)">
</td>
<td align=center>
<input type=button value="PTE" onClick="locate(this.form,'Portugal','Escudo',200.482)">
</td>
<td align=center>
<input type=button value="FIM " onClick="locate(this.form,'Finland','Mark',5.94573)">
</td>
<td align=center>
<input type=reset value="Reset">
</td>
</tr>
<tr>
<td colspan=6 align=center>
Country: <INPUT NAME="country" SIZE=8>
Currency: <INPUT NAME="currency" SIZE=8>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input name="euro1" size=8> Euro
</td>
<td colspan=2 align=center>
<input type=button value="equals" onClick="toLocal(this.form)">
</td>
<td colspan=2 align=center>
<input name="local1" size=8> Local
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input name="local2" size=8> Local
</td>
<td colspan=2 align=center>
<input type=button value="equals" onClick="toEuro(this.form)">
</td>
<td colspan=2 align=center>
<input name="euro2" SIZE=8> Euro
</td>
</tr>
</table>
</form>
</center>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL EURO CONVERTER:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Mike McGrath (mike_mcgrath@lineone.net) -->
<!-- Web Site: http://website.lineone.net/~mike_mcgrath -->
<!-- Begin
var rate, index;
function locate(f,member,curr,r) {
f.country.value=member;
f.currency.value=curr;
f.euro1.value=1;
rate=r;
toLocal(f);
}
function toLocal(f) {
if (f.euro1.value != "") {
f.local1.value = eval(f.euro1.value * rate);
if (f.euro1.value != "1") {
f.local1.value=eval(Math.round(f.local1.value * 100)) / 100;
f.local1.value=format(f.local1.value);
}
}
}
function toEuro(f) {
if (f.local2.value != "") {
f.euro2.value = eval(f.local2.value / rate);
if (f.local2.value != "1") {
f.euro2.value=eval(Math.round(f.euro2.value * 100)) / 100;
f.euro2.value=format(f.euro2.value);
}
}
}
function format(str) {
index = str.indexOf(".");
if (index < 0) str = str + ".00";
else {
str = str.substring(0, index + 3);
if (str.length < (index + 3)) str += "0";
}
return str;
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<center>
<form name="euroform">
<table border=1 cellpadding=3 cellspacing=0>
<td align=center colspan=6>Euro Converter</td>
<tr>
<td align=center>
<input type=button value="ATS" onClick="locate(this.form,'Austria','Schilling',13.7603)">
</td>
<td align=center>
<input type=button value="BEF" onClick="locate(this.form,'Belgium','Franc',40.3399)">
</td>
<td align=center>
<input type=button value="DEM" onClick="locate(this.form,'Germany','Mark',1.95583)">
</td>
<td align=center>
<input type=button value="ESP" onClick="locate(this.form,'Spain','Peseta',166.386)">
</td>
<td align=center>
<input type=button value="FRF" onClick="locate(this.form,'France','Franc',6.55957)">
</td>
<td align=center>
<input type=button value="IEP " onClick="locate(this.form,'Ireland','Pound',0.787564)">
</td>
</tr>
<tr>
<td align=center>
<input type=button value=" ITL " onClick="locate(this.form,'Italy','Lira',1936.27)">
</td>
<td align=center>
<input type=button value="NLG" onClick="locate(this.form,'Holland','Guilder',2.20371)">
</td>
<td align=center>
<input type=button value="LUF" onClick="locate(this.form,'Luxembourg','Franc',40.3399)">
</td>
<td align=center>
<input type=button value="PTE" onClick="locate(this.form,'Portugal','Escudo',200.482)">
</td>
<td align=center>
<input type=button value="FIM " onClick="locate(this.form,'Finland','Mark',5.94573)">
</td>
<td align=center>
<input type=reset value="Reset">
</td>
</tr>
<tr>
<td colspan=6 align=center>
Country: <INPUT NAME="country" SIZE=8>
Currency: <INPUT NAME="currency" SIZE=8>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input name="euro1" size=8> Euro
</td>
<td colspan=2 align=center>
<input type=button value="equals" onClick="toLocal(this.form)">
</td>
<td colspan=2 align=center>
<input name="local1" size=8> Local
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input name="local2" size=8> Local
</td>
<td colspan=2 align=center>
<input type=button value="equals" onClick="toEuro(this.form)">
</td>
<td colspan=2 align=center>
<input name="euro2" SIZE=8> Euro
</td>
</tr>
</table>
</form>
</center>
<!-- END OF SCRIPT -->
<!/PREVIEW>
<!RELATED>NONE<!/RELATED>